<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06二维码</title>
    <style>
        .box{
            width:107px;
            margin: 100px auto;
            position: relative;
            border: 1px solid #cccccc;
        }
        #close{
            width: 14px;
            height: 14px;
            font-size: 14px;
            position: absolute;
            line-height: 14px;
            top:0;
            left:-15px;
            border: 1px;
            cursor:pointer;
            display: block;
        }
    </style>
    <script>
        window.onload = function(){
            var close = document.getElementById("close");
            close.onclick = function(){
                this.parentNode.style.display = "none";
            }
        }
    </script>
</head>
<body>
<div class="box">
    <img src="images/taobao.jpg">
    <span id="close">x</span>
</div>
</body>
</html>